package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotDeviceInfo;

/**
 * 设备基础信息业务对象 iot_device_info
 *
 * @author Luo
 * @date 2025-07-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotDeviceInfo.class, reverseConvertGenerate = false)
public class IotDeviceInfoBo extends BaseEntity {

    /**
     * 设备ID
     */
    private Long id;

    /**
     * 设备唯一标识(Device Number)
     */
    private String dn;

    /**
     * 设备序列号
     */
    private String serialNo;

    /**
     * 设备名称/别名
     */
    @NotBlank(message = "设备名称/别名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 设备状态(0:未激活,1:在线,2:离线,3:禁用)
     */
    private Long state;

    /**
     * 备注信息
     */
    @NotBlank(message = "备注信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
